import React, { Component } from 'react'
import Video from '../video';
export default class App extends Component {
    state = {
        src:'http://127.0.0.1:3000/image/random'
    }
    render() {
        return (
            <Video src={this.state.src}  change = {this.change}/>
            )
    }
    change = () => {
        this.setState({
            src: 'http://127.0.0.1:3001/video/random?t=' + Date.now()
        })
    }
    
}

